/**
* eslint config
* @ref http://eslint.cn/
* @desc generated at <%- generatedAt %> by streakingman-cli@<%- version %>
*/

module.exports = {
    root: true,
    <% if (ts) { %> parser: '@typescript-eslint/parser',<% } %>
    parserOptions: {
        sourceType: 'module',
        ecmaVersion: 11,
    },
    env: {
        es6: true,
        node: true,
    },
    plugins: [
        'eslint-plugin-prettier',
        <% if (ts) { %> '@typescript-eslint',<% } %>
    ],
    extends: [
        'eslint:recommended',
        <% if (react) { %>'plugin:react/recommended',<% } %>
        <% if (ts) { %>'plugin:@typescript-eslint/recommended',<% } %>
        'plugin:prettier/recommended',
    ],
    rules: {
        'prettier/prettier': 'error',
    },
};
